package com.futao.springbootlearn20220224.async;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author futao@gmail.com
 * @date 2022/3/9
 */
@Slf4j
@Component
public class AsyncTask {

    @Async
    public void task2() {
        log.info("当前线程为:{}", Thread.currentThread().getName());
    }
}
